package itsm.isperp.module.service.app;

import itsm.isperp.framework.service.TreeNodeService;
import itsm.isperp.module.entity.app.AppSettingConfig;
import itsm.isperp.module.repository.app.AppSettingConfigMapper;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

/**
 * 系统设置配置的服务
 * 
 * @author lizx
 * @date 2013-7-20
 * @version V1.0
 */
@Service
public class AppSettingConfigService extends TreeNodeService<AppSettingConfig> {

	@Resource
	protected AppSettingConfigMapper appSettingConfigMapper;

	@Override
	public AppSettingConfigMapper getRepository() {
		return this.appSettingConfigMapper;
	}

	public AppSettingConfig getByCode(String code) {

		return this.getRepository().findByCode(code);
	}

	public List<AppSettingConfig> getChildrenByCode(String code) {

		return this.getRepository().findChildrenByCode(code);
	}

}
